package com.candy.oop;

public class Test02 {
    public static void main(String[] args) {
        Solider s1=new Solider();
        Solider s2=new Solider();
        Gun g1=new AK47();
        Gun g2=new K98();
        s1.fightting(g1);
        s2.fightting(g2);
    }
}
